package com.zxl.common.model.bo.role;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author zxw
 * @date 2023/4/7
 */
@Data
public class RoleAdd {
    @ApiModelProperty("修改时，给角色id")
    private Integer id;

    @ApiModelProperty("角色名称")
    @NotBlank(message = "角色名称不能为空")
    private String name;

    @ApiModelProperty("权限")
    @NotBlank(message = "权限不能为空")
    private String apiStr;
}
